﻿
namespace Ledict.Utility.Model
{
    #region 消息包装类
    /// <summary>
    /// Json的通用信息包装类
    /// </summary>
    /// <remarks>
    /// Create Date:2014-08-11
    /// Create Author:Zhangpeng
    /// </remarks>
    public class JsonMsg
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public JsonMsg()
        {
            Result = false;
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="result">返回结果状态</param>
        /// <param name="message">返回消息的内容</param>
        public JsonMsg(bool result, string message,object data)
        {
            Result = result;
            Message = message;
            Data = data;
        }

        /// <summary>
        /// 返回结果状态
        /// </summary>
        public bool Result { get; set; }

        /// <summary>
        /// 返回消息的内容
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 返回数据
        /// </summary>
        public object Data { get; set; }
    }
    #endregion
}
